import request from '@/utils/request'
// 展示七牛配置
export const getQiNiuConfig = (id = null) => request({
  url: `/admin/qiNiu/config?id=${id}`,
  method: 'get'
})

// 新增七牛配置
export const createQiNiuConfig = (data) => request({
  url: '/admin/qiNiu/config',
  method: 'post',
  data
})

// 修改七牛配置
export const updateQiNiuConfig = (data) => request({
  url: '/admin/qiNiu/config',
  method: 'put',
  data
})

// 修改七牛配置
export const deleteQiNiuConfig = (data) => request({
  url: '/admin/qiNiu/config',
  method: 'delete',
  data
})

// 查询全部配置
export const pageQuery = (data) => request({
  url: '/admin/qiNiu/config/all',
  method: 'post',
  data
})

